package com.example.demo.bingfa;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @ClassName test1
 * @Description TODO
 * Author yangqinglin
 * @Date 2021/2/13 13:14
 * @Version
 **/
public class test1 {
    public static void main(String[] args) {
        AtomicInteger i=new AtomicInteger(5);
        i.getAndUpdate(x->x*10);
        System.out.println(i.getAndUpdate(x->x/12));;
        System.out.println(i.get());



    }
}
